#include <stdio.h>

int main() {
    int arr1[] = {3, -1, -2, 4, 5, -6, 9};
    int n=0,i;
    int temp;
    int arr1_len = sizeof(arr1) / sizeof(arr1[0]);
    for (i = 0; i < arr1_len; ++i) {
        for (int j = i; j < arr1_len; ++j) {
            if(arr1[j]<arr1[i]){
                temp=arr1[i];
                arr1[i]=arr1[j];
                arr1[j]=temp;
            }
        }
    }
    for ( i = 0; i < arr1_len; ++i) {
        printf("%d",arr1[i]);
    }
    return 0;
}
